import java.awt.Font;
import java.awt.Graphics;
import java.awt.Color;

public class Bubble {
	private String message1, message2;
	
	public Bubble(String message1, String message2){
		this.message1 = message1;
		this.message2 = message2;
	}
	
	public String getMessage1(){
		return message1;
	}
	
	public String getMessage2(){
		return message2;
	}
	
	public void draw(Graphics g){
		g.setColor(Color.black);
		g.setFont(new Font("Courier", Font.PLAIN, 10));
		g.fillRect((World.getInstance().getMap().player.getX()*OurApplet.TILE_SIZE) - 150, (World.getInstance().getMap().player.getY()*OurApplet.TILE_SIZE) + 150, 325, 60);
		g.setColor(Color.white);
		g.fillRoundRect((World.getInstance().getMap().player.getX()*OurApplet.TILE_SIZE) - 145, (World.getInstance().getMap().player.getY()*OurApplet.TILE_SIZE) + 155, 315, 50, 20, 20);
		g.setColor(Color.black);
		g.drawString(message1, (World.getInstance().getMap().player.getX()*OurApplet.TILE_SIZE) - 140, (World.getInstance().getMap().player.getY()*OurApplet.TILE_SIZE) + 170);
		g.drawString(message2, (World.getInstance().getMap().player.getX()*OurApplet.TILE_SIZE) - 140, (World.getInstance().getMap().player.getY()*OurApplet.TILE_SIZE) + 190);
	}
}
